#!/usr/bin/python  
#-*- coding:utf-8 -*-  
############################  
#File Name: test.py
#Author: Timy.Huang 
#Mail: timy.huang@foxmail.com  
#Created Time: 2017-06-03 22:54:51
############################  

import commands, base64

if __name__ == "__main__":
    f = open( "searchtest.xml" )
    stdin = f.read()
    cmd = "python zab.py " + base64.b64encode( stdin )
    stdout = commands.getoutput( cmd )
    print stdout
